const inquirer = require('inquirer')
const Inquirer = () => {
  return inquirer.prompt([
    {
      name: 'name',
      message: '请输入仓库名称：',
      validate: (val) => Boolean(val.trim()) || '仓库名称不能为空'
    },
    {
      name: 'description',
      message: '请输入仓库描述：'
    },
    {
      name: 'private',
      message: '是否设置为私有仓库？',
      type: 'confirm',
      default: false
    }
  ])
}
module.exports = {
  Inquirer
}
